package ooday01;
/** 构造方法的测试类 */
public class ConsDemo {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name = "张光";
        zg.age = 20;
        zg.className = "jsd2408";
        zg.stuId = "001";
        zg.sayHi();

        Student ll = new Student("李林",25,"jsd2408","002");
        ll.sayHi();
        Student zl = new Student("赵亮",28,"jsd2408","003");
        zl.sayHi();
        zl.study();
        /*
        * Student zg = new Student();
        * zg.name = "赵亮";
        * zg.age = "22";
        * zg.className = "jds2048";
        * zg.stuId = "001";
        * zg.sayHi();
        * */
    }
}
